package persistent.dao;

import java.util.List;

import model.TForum;
import model.VForum;

public interface ForumDAO {
	public int addForum(TForum forum);
	public boolean deleteForum(int titleid);
	public boolean updateForum(TForum Forum);
	public boolean increaseReviewCounter(int titleid);
	public boolean increaseScanCounter(int titleid);
	public VForum getVForumById(int titleid);
	public TForum getForumById(int titleid);
	public List<VForum> getForumlistByPage(String userid,int currentPage,int pageSize);
	public int getForumAmountByUser(String userid);
	public int getPageAmount(String userid,int pageSize);
	public List<VForum> getForumListByLike(String userid,String likecondtion,int currentPage,int pageSize);
	public List<VForum> getForumListByLike(String likecondtion,int currentPage,int pageSize);
	public List<VForum> getForumsByUser(String userid);
}
